const char *name,
const char *description,
const char *gettext_domain,
+ const char *settings_schema,
GError **error)
{
g_autofree char *uuid_escaped = NULL;
if (gettext_domain)
g_string_append_printf (json, " \"gettext-domain\": \"%s\",\n", gettext_domain);
+ if (settings_schema)
+ g_string_append_printf (json, " \"settings-schema\": \"%s\",\n", settings_schema);
+
g_string_append_printf (json, " \"shell-version\": [\n");
g_string_append_printf (json, " \"%s\"\n", version);
g_string_append_printf (json, " ]\n}\n");
const char *name,
const char *description,
const char *gettext_domain,
+ const char *settings_schema,
const char *template)
{
g_autoptr (GFile) dir = NULL;
return FALSE;
}
- if (!create_metadata (dir, uuid, name, description, gettext_domain, &error))
+ if (!create_metadata (dir, uuid, name, description, gettext_domain, settings_schema, &error))
{
g_printerr ("%s\n", error->message);
return FALSE;
g_autofree char *description = NULL;
g_autofree char *uuid = NULL;
g_autofree char *gettext_domain = NULL;
+ g_autofree char *settings_schema = NULL;
g_autofree char *template = NULL;
gboolean interactive = FALSE;
gboolean list_templates = FALSE;
.arg_description = _("DOMAIN"),
.arg = G_OPTION_ARG_STRING, .arg_data = &gettext_domain,
.description = _("The gettext domain used by the extension") },
+ { .long_name = "settings-schema",
+ .arg_description = _("SCHEMA"),
+ .arg = G_OPTION_ARG_STRING, .arg_data = &settings_schema,
+ .description = _("The GSettings schema used by the extension") },
{ .long_name = "template",
.arg = G_OPTION_ARG_STRING, .arg_data = &template,
.arg_description = _("TEMPLATE"),
return 1;
}
- return create_extension (uuid, name, description, gettext_domain, template) ? 0 : 2;
+ return create_extension (uuid, name, description, gettext_domain, settings_schema, template) ? 0 : 2;
}